<?php

namespace iBrand\Shop\Core\Repositories;

use iBrand\Shop\Core\Models\Clerk;
use Prettus\Repository\Contracts\RepositoryInterface;

interface ClerkRepository extends RepositoryInterface
{
    /**
     * Get a user by the given credentials.
     *
     * @param array $credentials
     *
     * @return mixed
     */
    public function getClerkByCredentials(array $credentials);

    /**
     * 获取门店店员信息列表
     * @param $where
     * @return \Illuminate\Database\Eloquent\Builder[]|\Illuminate\Database\Eloquent\Collection|\Illuminate\Database\Eloquent\Model[]
     */
    public function getClerkList($where);


    public function getListClerks($where, $shop_name = null);
}
